package PTA.javajibenyufa;



import java.math.BigInteger;
import java.util.Scanner;

public class ex07 {
    public static void main(String[] args) {
        BigInteger sum = new BigInteger("0");
        Scanner sc = new Scanner(System.in);
        String bigStr = sc.nextLine();
        do {
            BigInteger bigNum = new BigInteger(bigStr);
            sum = sum.add(bigNum);
            bigStr = sc.nextLine();
        }while(!bigStr.equals("e") && !bigStr.equals("E"));
        System.out.println(sum);
    }
}

